<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智识网登录</title>
    <link rel="shortcut icon" href="image/favtion.icon" type="image/x-icon">
    <link rel="stylesheet" href="css/login.css">
    <link rel="stylesheet" href="vidbacking-master/dist/jquery.vidbacking.css" type="text/css">
    <script src="js/jquery.min.js"></script>
</head>

<body>
    <video poster="image/aodiRs7.jpg" autoplay loop class="vidbacking">
        <source src="image/bgVideo.mp4" type="video/mp4">
    </video>

    <form action="" class="login-form">
        <h1>登录</h1>
        <div class="txtb">
            <input type="text" name="username" value="">
            <span data-placeholder="请输入QQ号/用户名/手机号"></span>
        </div>
        <div class="txtb">
            <input type="password" name="password" value="">
            <span data-placeholder="请输入密码"></span>
        </div>
        <input type="submit" class="loginbtn" value="登 录">
        <div class="bottom-text">
            没有账号<span id="register">注册</span>
        </div>
        <div class="bottom-text3">
            <a href="">我忘记了自己的密码</a>
        </div>
    </form>

    <div class="register-form">
        <h2>注册</h2>
        <div class="txtb" id="userimage">
            <input type="text" name="username" value="">
            <span data-placeholder="请输入QQ号"></span>
            <img src="http://q1.qlogo.cn/g?b=qq&nk=1423228256&s=100" alt="用户图像" width="50px" height="45px" style="border-radius: 50%;">
        </div>
        <div class="txtb">
            <input type="password" name="password" value="">
            <span data-placeholder="请输入密码"></span>
        </div>
        <div class="txtb">
            <input type="password" name="password" value="">
            <span data-placeholder="请再次确认密码"></span>
        </div>
        <div class="txtb">
            <input type="text" name="phone" value="">
            <span data-placeholder="请输入手机号"></span>
        </div>
        <div class="txtb" id="vercode">
            <input type="text" name="password" value="">
            <span data-placeholder="请输入验证码"></span>
            <img src="" alt="验证码" title="验证码">
        </div>
        <input type="submit" class="loginbtn" value="注 册">
        <div class="bottom-text2">
            <span id="back">返回</span>
        </div>
    </div>
    <script type="text/javascript" src="vidbacking-master/dist/jquery.vidbacking.js"></script>
    <script type="text/javascript">
        $(function () {
            $('body').vidbacking();
        });
        $(".txtb input").on("focus",function(){
            $(this).addClass("focus")
        })
        $(".txtb input").on("blur",function(){
            if($(this).val() == "")
            $(this).removeClass("focus")
        })
        $("#register").click(function(){
            $(".register-form").addClass("reister-block")
        })
        $("#back").click(function(){
            $(".register-form").removeClass("reister-block")
        })
    </script>
</body>
</html>